{include file="public_head" /}

<!-- datatables -->
<link href="__STATIC__/js/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>
                            充值统计
                        </h3>
                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>{$mate_title}
                                    <!--<small>promotion</small>-->
                                </h2>
                                <a style="float: right" onclick="wipe_cache()"
                                   class="btn btn-success btn-sm">获取最新数据</a>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">

                                <div class="row">

                                    <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
                                        <div class="tile-stats">
                                            <div class="icon"><i class="fa fa-cny (alias)"></i>
                                            </div>
                                            <div class="count">
                                                {empty name=':cache("sales_today_recharge")'}
                                                0
                                                {else/}
                                                {:cache('sales_today_recharge')}
                                                {/empty}
                                                元
                                            </div>

                                            <h3>今日充值总金额</h3>
                                        </div>
                                    </div>
                                    <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
                                        <div class="tile-stats">
                                            <div class="icon"><i class="fa fa-cny (alias)"></i>
                                            </div>
                                            <div class="count">
                                                {empty name=':cache("sales_accumulator_recharge")'}
                                                0
                                                {else/}
                                                {:cache('sales_accumulator_recharge')}
                                                {/empty}
                                                元
                                            </div>

                                            <h3>累计充值总金额</h3>
                                        </div>
                                    </div>
                                    <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
                                        <div class="tile-stats">
                                            <div class="icon"><i class="fa fa-cny (alias)"></i>
                                            </div>
                                            <div class="count">
                                                {empty name=':cache("sales_today_withdraw")'}
                                                0
                                                {else/}
                                                {:cache('sales_today_withdraw')}
                                                {/empty}
                                                元
                                            </div>

                                            <h3>今日提现总金额</h3>
                                        </div>
                                    </div>
                                    <div class="animated flipInY col-lg-3 col-md-3 col-sm-6 col-xs-12">
                                        <div class="tile-stats">
                                            <div class="icon"><i class="fa fa-cny (alias)"></i>
                                            </div>
                                            <div class="count">
                                                {empty name=':cache("sales_accumulator_withdraw")'}
                                                0
                                                {else/}
                                                {:cache('sales_accumulator_withdraw')}
                                                {/empty}
                                                元
                                            </div>

                                            <h3>累计提现总金额</h3>
                                        </div>
                                    </div>

                                </div>

                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}
<!--select-->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<script src="__STATIC__/js/bootstrap.min.js"></script>
<script type="text/javascript">
    // 清空缓存
    function wipe_cache(){

        var host=window.location.host;

        var check_url="/public/index.php/Client/Statistics/wipe_cache";
        $.getJSON('http://'+host+check_url,function(result){

            if(result == 1){
                window.location.reload();
                layer.msg('更新数据成功');
            }else{
                layer.msg('网络繁忙,请重试');
            }

        });
    }
</script>